package com.atguigu.c_threadstart2;
/*
     线程的任务类
 */
public class MyTarget implements Runnable{
    @Override
    public void run() {
        //假设 线程任务是 打印10次HelloWorld
        for (int i = 1; i <= 10; i++) {
            System.out.println(Thread.currentThread().getName() + "HelloWorld" + i);
        }
    }
}
